# (c) 2010 The Board of Trustees of the University of Illinois.

LANGUAGE=c
SRCDIR_OBJS=main.o 

# To use slow (but precise) math routines
ifeq ($(slowmath), 1)
	APP_CFLAGS += -fp-model precise
else
	APP_CFLAGS += -ffast-math
	APP_CXXFLAGS += -ffast-math
endif

APP_CFLAGS += -fopenmp
APP_CXXFLAGS += -fopenmp

APP_LDFLAGS = -lm -lstdc++ -fopenmp

# To use the MKL library
ifeq ($(mkl), 1)
	APP_LDFLAGS += -L/opt/intel/mkl/8.0/lib/em64t \
		-lmkl -lvml -lguide -lpthread
	INCLUDES = -I/opt/intel/mkl/9.1.023/include
	APP_CFLAGS += -DMKL $(INCLUDES)
endif


